{include file="header.tpl" tile="Historikk for $offender" logged_in=$logged_in CONFIG=$CONFIG}

{if $description}
<table
 style="width: 60%; text-align: left; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr class="row_green">
      <th colspan="1" rowspan="1" style="width: 90%;">Beskrivelsen i versjon datert  {$description.date|date_format:"%d/%m/%Y"} {$description.time}</th>
    </tr>
    <tr class="row_green_cycle">
      <td colspan="1" rowspan="1">
      	{$description.description}
      </td>
    </tr>
  </tbody>
</table>
{/if}
<br>

<form method="get" action="view.php"
 name="description">
<input type="hidden" name="history" value="{$offender}">
  <table
 style="width: 60%; text-align: left; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr class="row_green">
        <th colspan="3" rowspan="1" style="width: 90%;">Redigeringshistorie
for <a href="browse.php?category=offender&amp;selection={$offender}">{$offender}</a></th>
      </tr>
      <tr class="row_green">
        <td colspan="3" rowspan="1" align="undefined"
 valign="undefined"><input
 value="Sammenlign valgte versjoner" type="submit"></td>
      </tr>
	

	{section loop=$history name="history"}
      <tr class="{cycle values="row_green_cycle,row_green"}">
        <td colspan="1" rowspan="1">
	{if $history[history].id eq $smarty.get.compare1}
		<input
 		name="compare1" value="{$history[history].id}" type="radio" checked="true">
	{else}
		<input
 		name="compare1" value="{$history[history].id}" type="radio">
	{/if}
        </td>
        <td align="undefined" valign="undefined">
		{if $history[history].id eq $smarty.get.compare2}
		<input
 name="compare2" value="{$history[history].id}" type="radio" checked="true">
		{else}
		<input
 name="compare2" value="{$history[history].id}" type="radio">
		{/if}
	</td>
        <td style="width: 90%;"><a href="view.php?history={$history[history].id}&amp;is_id=true">{$history[history].date|date_format:"%d/%m/%Y"} {$history[history].time}</a> <a href="profile.php?user={$history[history].user}">{$history[history].user}</a></td>
      </tr>
	{/section}


    </tbody>
  </table>
</form>
<br>

{if $diff}

<table
 style="width: 60%; text-align: left; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr class="row_green">
      <th colspan="1" rowspan="1" style="width: 90%;">Forskjeller
mellom versjoner</th>
    </tr>
    <tr class="row_green_cycle">
      <td colspan="1" rowspan="1">
      	{$diff}
      </td>
    </tr>
  </tbody>
</table>

{/if}

{include file="footer.tpl"}